public class Main {
    public static void main(String[] args) {
        Student student1 = new Student(10,74,"张三");
        Student student2 = new Student(8,84,"李四");
        System.out.println("进行年龄的比较");

        AgeCompare ageCompare = new AgeCompare();
        if(ageCompare.compare(student1,student2) > 0) {
            System.out.println("student1 > student2");
        }else {
            System.out.println("student1 < student2");
        }
    }
}
